#!/usr/bin/python3
# -*- coding: utf-8 -*-
# ======================================#
# @Author   : duanqizhong
# @time     : 2022-8-16 10:52
# @file     : settings.py
# @Software : PyCharm
# ======================================#
import os
import sys

BASE_DIR = sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

CONNECT_TIMEOUT = 10

RSA_KEY_PATH='/root/.ssh/id_rsa'

# 慢查sql记录库
DB_Anemometer = {
    "host": "10.32.16.27",
    "port": 3310,
    "username": "anemometer",
    "password": "anemometer",
    "database": "slow_query_log",
    "query_review_table": "global_query_review",
    "query_review_history_table": "global_query_review_history",
}

# 环境信息库
DB_Env = {
    "host": "10.32.32.42",
    "port": 3306,
    "username": "eec-lord",
    "password": "KJ9as#s*1",
    "database": "lord"
}

# 慢查校验库
DB_Check = {
    "host": "10.32.1.33",
    "port": 3306,
    "username": "anemometer",
    "password": "anemometer",
}

DB_Conf = {
    "stage": {
        "host": "10.32.32.22",
        "port": 3306,
        "slow_log": True,
        "alarms": ["manage_cc", "manage_base", "teacher", "parents", "learn", "teacher_research", "online_class",
                   "global", "campus", "vipfengxiao", "call_center", "qxy", "learningProduct", "sku", "fireman",
                   "class_order"]
    },
    "stage_manage_lp": {
        "host": "10.32.69.29",
        "port": 3306,
        "slow_log": True,
        "alarms": ["manage_lp"]
    },
}
